Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the current
authorKristian Rietveld <kris@imendio.com>
Wed, 28 May 2008 14:00:31 +0000 (14:00 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Wed, 28 May 2008 14:00:31 +0000 (14:00 +0000)
commit382ce2f13825c6b51b8b62db56a5e8ab9abee286
treeca19663c25a53e1acb6aba3425fe743c8cb1f9ca
parent83b215f9eaa4ae3d0a53141549042a2a0f2dea69
Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the current

2008-05-28  Kristian Rietveld  <kris@imendio.com>

Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the
current widget again.

* gtk/gtktooltip.c (gtk_tooltip_set_custom),
(gtk_tooltip_reset), (gtk_tooltip_run_requery): use a
custom_was_reset field to check if the custom widget is set again in
the query-tooltip callback; if not, we set it to NULL.  Based on a
patch by Xavier Claessens, insightful comments from Jean-Yves Lefort
and Christian Persch.

svn path=/trunk/; revision=20215
ChangeLog
gtk/gtktooltip.c